package cn.tedu.store.mapper;

import java.util.List;

import javax.sound.midi.SysexMessage;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import cn.tedu.store.entity.Goods;

@RunWith(SpringRunner.class)
@SpringBootTest
public class GoodsMapperTestCase {

	@Autowired
	private GoodsMapper goodsMapper;
	
	@Test
	public void findHotList() {
		List<Goods> goods = goodsMapper.findHotList();
		System.err.println(goods.size());
		System.err.println("BEGIN");
		for(Goods g:goods) {
			System.err.println(g);
		}
		System.err.println("END");
	}
	
	@Test
	public void findById() {
		Long id=10000017L;
		Goods good = goodsMapper.findById(id);
		System.err.println(good);
	}
	
}
